package com.sunrise.xdoc.dao.impl;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.sunrise.xdoc.dao.IDinhMucDao;
import com.sunrise.xdoc.entity.order.DinhMuc;

@Repository("dinhMucDao")
public class DinhMucDao extends BaseDao<DinhMuc> implements IDinhMucDao {

	@Override
	public void canBangDinhMucAll() {
		Query query = getCurrentSession().createQuery("UPDATE DinhMuc dm SET dm.conLai = dm.dinhMucBan");
		query.executeUpdate();
	}
}
